Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
ignorepatterns
Advanced tools
A regular expression that matches common filenames that we want to ignore
A regular expression that matches common filenames that we want to ignore
import ignorePatternsRegExp from 'ignorepatterns'
console.log(ignorePatternsRegExp.test('.DS_Store')) // true
npm install --save ignorepatterns
import pkg from ('ignorepatterns')
const pkg = require('ignorepatterns').default
This package is published with the following editions:
ignorepatterns/source/index.ts
is TypeScript source code with Import for modulesignorepatterns
aliases ignorepatterns/edition-es2022/index.js
ignorepatterns/edition-es2022/index.js
is TypeScript compiled against ES2022 for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulesignorepatterns/edition-es2022-esm/index.js
is TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modulesDiscover the release history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
v4.18.0 2023 November 1
MIT
to Artistic-2.0
FAQs
A regular expression that matches common filenames that we want to ignore
The npm package ignorepatterns receives a total of 15,040 weekly downloads. As such, ignorepatterns popularity was classified as popular.
We found that ignorepatterns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.